<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="css/dashboard.css">
    <link rel="stylesheet" href="css/font-awesome.css">
    <link rel="stylesheet" href="css/bootstrap.min.css">

    <title>Dockercraft</title>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="dashbroad">Dockercraft</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li><a href="dashbroad.html">管理中心</a></li>
                <li><a class="rc" href="setting.html">用户设置</a></li>
            </ul>
            <ul class="nav navbar-nav pull-right">
                <li><a href="logout">退出</a></li>
            </ul>
        </div>
    </div>
</nav>
<div class="container-fluid">
    <div class="sidebar">
        <ul class="nav nav-sidebar sidebar-main">
            <li><a class="rc" href="instances/list">列表</a></li>
            <li><a class="rc" href="tickets/list">工单</a></li>
        </ul>
        <ul class="nav nav-sidebar sidebar-extend">
        </ul>
    </div>
    <div class="main">

    </div>
</div>
<div style="display:none">
    <textarea id="tpl_terminal">
        <div style="position:relative;">
            <iframe class="terminal-frame" src="${url}"></iframe>
            <div class="terminal-cog" onclick="settings('${uuid}')"><i class="glyphicon glyphicon-cog white"></i></div>
        </div>
    </textarea>
    <textarea id="tpl_instlist">
        <table class="table table-striped instlist">
            <tr>
                <th>名称</th>
                <th>内存</th>
                <th>创建时间</th>
                <th></th>
            </tr>
            {{each list}}
                <tr>
                    <td>
                        ${label?label:uuid}
                    </td>
                    <td>${mem}</td>
                    <td>${createTime}</td>
                    <td>
                        <button class="btn btn-xs" onclick="touch('${uuid}')"><i class="fa fa-terminal"></i></button>
                        <button class="btn btn-xs btn-success" onclick="inst.start('${uuid}');"><i class="glyphicon glyphicon-play"></i></button>
                        <button class="btn btn-xs btn-danger" onclick="inst.stop('${uuid}');"><i class="glyphicon glyphicon-stop"></i></button>
                        <button class="btn btn-xs" onclick="inst.restart('${uuid}');"><i class="glyphicon glyphicon-repeat"></i></button>
                        <button class="btn btn-xs" onclick="settings('${uuid}')"><i class="glyphicon glyphicon-cog"></i></button>
                    </td>
                </tr>
            {{/each}}
        </table>
    </textarea>
    <textarea id="tpl_settings">
        <iframe src="${src}" width="100%" frameborder="0px" style="min-height:400px;" SCROLLING="NO"></iframe>
    </textarea>
</div>
<script src="js/md5.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.tmpl.min.js"></script>
<script src="js/jquery.tmplPlus.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/socket.io.js"></script>
<script src="js/dockercraft.js"></script>
</body>
</html>